function getTimeStatus(startTime, endTime){
	var startTime = new Date(startTime.replace(/-/g,'/'))*1.0;//开始时间
	var endTime = new Date(endTime.replace(/-/g,'/'))*1.0;//结束时间
	var curTime = new Date()*1.0;//当前时间
	var sec = (endTime - curTime)/1000;//计算总秒数
	var secMinus = function(){
		var timestatus = {
				nd:0,
				nh:0,
				nm:0,
				ns:0
		}
		if(Math.floor(sec)>0){
			sec--;
			var nd = Math.floor(sec/(24*60*60));
			var nh = Math.floor(sec/(60*60)%24);
			var nm = Math.floor(sec/60%60);
			var ns = Math.floor(sec%60);
			timestatus.nd = nd;
			timestatus.nh = nh;
			timestatus.nm = nm;
			timestatus.ns = ns;
		}
		return timestatus;
	}
	return secMinus;
}
function createTimeNode(startTime, endTime){
	var tr = getTimeStatus(startTime,endTime);
	var ts = tr();
	var timeNode = "<span id='day'>"+ts.nd+"</span>天<span id='hour'>"+ts.nh+"</span>小时<span id='minute'>"+ts.nm+"</span>分<span id='second'>"+ts.ns+"</span>秒";
	return timeNode;
}
getTimeStatus.defaultConfig = {
		startTime: new Date*1.0,
		endTime: new Date*1.0+10*24*60*60
}
